package com.codeoss.framework.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.codeoss.framework.response.MMyResponse;
import com.codeoss.framework.service.IMMyService;

@Controller
@RequestMapping("mmy")
public class MMyController {
	@Autowired
	private IMMyService mMyService;
	
	@RequestMapping(value = "init", method = RequestMethod.GET)
	@ResponseBody
	public MMyResponse init(){
		MMyResponse mMyResponse=mMyService.init();
		return mMyResponse;
	}
	
	@RequestMapping(value = "logout", method = RequestMethod.POST)
	@ResponseBody
	public MMyResponse logout(){
		MMyResponse mMyResponse=mMyService.logout();
		return mMyResponse;
	}
}
